
			<section class="wrapper">
				<!-- page start-->
				<section class="panel">
					<header class="panel-heading">
						MODULES MANAGEMENT <span class="pull-right"></span>
					</header>
					<div class="panel-body">
						

							<div class="input-group col-lg-5 pull-right">
                                          <form name="action" method="POST"
							action="<?=base_url(); ?>secure/module/module_management">
							
							<div class="col-lg-offset-2 col-lg-6">
							 <input type="text" class="form-control"></div>
							 <select class="form-control" name="filter" style="width:100px"
								onchange="this.form.submit()">
								<option value="">Action</option>
								<option value="search">Search</option>
								<option value="inactive">Inactive</option>
								<option value="active">Active</option>
							
							</select>
						</form>
                                          
                                          
                                             
                                              </div>
                                          </div>

						

						<table class="table table-striped table-advance table-hover">
							<thead>
								<tr>
									<th><i class="icon-bullhorn"></i> Module Name</th>
									<th><i class="icon-bookmark"></i> Description</th>
									<th><i class="icon-bookmark"></i> STATUS</th>
									<th><i class=" icon-edit"></i> ACTION</th>
								</tr>
							</thead>
							<tbody>
							<?php if($modules){?>
					<?php foreach ($modules as $modules) : ?>
								<tr>
									<th><?= $modules->module;?>
									</th>
									<td class="hidden-phone"><?= $modules->description;?></td>
									<td>
									<?php if($modules->status ==51){?>
									<button class="btn btn-success btn-xs">
											<i class=" icon-ok"> Active</i>
										</button>
									<?php }else{?>
									<button class="btn btn-danger btn-xs">
											<i class=" icon-remove"> Inactive</i>
										</button>
									<?php }?>
										</td>

									<td>
										<div class="dropdown">
											<a href="javascript:;"
												class="dropdown-toggle btn btn-danger btn-xs"
												data-toggle="dropdown">Menu <b class="caret"></b>
											</a>
											<ul class="dropdown-menu">
												<li><a href="<?= base_url();?>secure/module/module_management/change_module_status/<?= $modules->status;?>/<?= $modules->id;?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');">Active</a></li>
												<li><a href="<?= base_url();?>secure/module/module_management/change_module_status/<?= $modules->status;?>/<?= $modules->id;?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" >Inactive</a></li>
												
										</div>
										</li>
									</td>
								</tr>
<?php endforeach; 
}else { echo "No Data found....";
}?>						</tbody>
						</table>
						</div>
					<!-- End of Body Panel -->
				</section>
				<!-- page end-->
			</section>
		</section>
